﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

namespace System.WXT.Infrstructre.Migrations
{
    /// <inheritdoc />
    public partial class wxt202412121900 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Craft",
                columns: table => new
                {
                    craftManageId = table.Column<int>(type: "integer", nullable: false)
                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
                    craftManagenumbering = table.Column<string>(type: "text", nullable: true),
                    craftManageName = table.Column<string>(type: "text", nullable: true),
                    craftManageState = table.Column<int>(type: "integer", nullable: false),
                    craftManageFinishName = table.Column<string>(type: "text", nullable: true),
                    craftManageDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
                    craftManageAddName = table.Column<string>(type: "text", nullable: true),
                    craftManageIsDel = table.Column<int>(type: "integer", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Craft", x => x.craftManageId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Craft");
        }
    }
}
